package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.SystemSmsCode;
/**
* @author liaocheng
* @date 2024-11-01
* description:手机验证码
*/
@Data
public class SystemSmsCodeVo  extends BaseField {

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "验证码")
    private String code;

    @ApiModelProperty(value = "创建 IP")
    private String createIp;

    @ApiModelProperty(value = "发送场景")
    private Integer scene;

    @ApiModelProperty(value = "今日发送的第几条")
    private Integer todayIndex;

    @ApiModelProperty(value = "是否使用")
    private Integer used;

    @ApiModelProperty(value = "使用时间")
    private Date usedTime;

    @ApiModelProperty(value = "使用 IP")
    private String usedIp;

    private List<Long> delIds;  //批量删除ids

    public static SystemSmsCodeVo invertToVo(SystemSmsCode systemSmsCode){
        SystemSmsCodeVo vo = new SystemSmsCodeVo();
        BaseField.invert(systemSmsCode, vo);
        vo.setId(systemSmsCode.getId());
        vo.setMobile(systemSmsCode.getMobile());
        vo.setCode(systemSmsCode.getCode());
        vo.setCreateIp(systemSmsCode.getCreateIp());
        vo.setScene(systemSmsCode.getScene());
        vo.setTodayIndex(systemSmsCode.getTodayIndex());
        vo.setUsed(systemSmsCode.getUsed());
        vo.setUsedTime(systemSmsCode.getUsedTime());
        vo.setUsedIp(systemSmsCode.getUsedIp());
        return vo;
    }
}
